﻿using System;

namespace DimensionsHelper.Common.Sql;

public enum FieldChangeType
{
    Add,
    Remove
}

public class FieldChangedEventArgs : EventArgs
{
    public FieldChangedEventArgs(string fieldName, FieldChangeType fieldChangeType)
    {
        FieldName = fieldName;
        FieldChangeType = fieldChangeType;
    }

    /// <summary>
    ///     发生改变的字段名。
    /// </summary>
    public string FieldName { get; }

    /// <summary>
    ///     字段变化类型 - 添加或删除。
    /// </summary>
    public FieldChangeType FieldChangeType { get; }
}